package per.dg.basicusethread

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.View
import per.dg.basicusethread.creatandrunthread.CreatAndRunThreadActivity
import per.dg.basicusethread.threadstate.ThreadStateActivity
import java.util.concurrent.Callable
import java.util.concurrent.FutureTask

val TAG = "MainActivity"

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)


    }

    fun onClick(view: View) {
        when(view.id){
            R.id.bt_to_creat_thread_activity ->{
                startActivity(Intent(this, CreatAndRunThreadActivity::class.java))
            }

            R.id.bt_to_thead_state_activity ->{
                startActivity(Intent(this, ThreadStateActivity::class.java))
            }
        }
    }
}